package entity;

import org.w3c.dom.Text;

import java.sql.Date;

public class TrainVehicleInfo {
    int carId;
    String carName;
    String carType;
    String makeProduct;
    Date makeDate;

    String currentStatus;
    String railwaybureau;
    int seats;
    int capacity;
    Date lastMaintenanceDate;
    Text notes;

    public int getCarId() {
        return carId;
    }

    public void setCarId(int carId) {
        this.carId = carId;
    }

    public String getCarName() {
        return carName;
    }

    public void setCarName(String carName) {
        this.carName = carName;
    }

    public String getCarType() {
        return carType;
    }

    public void setCarType(String carType) {
        this.carType = carType;
    }

    public String getMakeProduct() {
        return makeProduct;
    }

    public void setMakeProduct(String makeProduct) {
        this.makeProduct = makeProduct;
    }

    public java.sql.Date getMakeDate() {
        return makeDate;
    }

    public void setMakeDate(Date makeDate) {
        this.makeDate = makeDate;
    }

    public String getCurrentStatus() {
        return currentStatus;
    }

    public void setCurrentStatus(String currentStatus) {
        this.currentStatus = currentStatus;
    }

    public String getRailwaybureau() {
        return railwaybureau;
    }

    public void setRailwaybureau(String railwaybureau) {
        this.railwaybureau = railwaybureau;
    }

    public int getSeats() {
        return seats;
    }

    public void setSeats(int seats) {
        this.seats = seats;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public Date getLastMaintenanceDate() {
        return lastMaintenanceDate;
    }

    public void setLastMaintenanceDate(Date lastMaintenanceDate) {
        this.lastMaintenanceDate = lastMaintenanceDate;
    }

    public Text getNotes() {
        return notes;
    }

    public void setNotes(Text notes) {
        this.notes = notes;
    }

    public String show(){
        return "车辆名称"+carName+",车辆类型"+carType+",制造厂商"+makeProduct+",制造日期"+makeDate+
                ",当前状态"+currentStatus+",所属铁路局"+railwaybureau+",载客量"+capacity+
                ",上次检修日期"+lastMaintenanceDate+"\n"+"******************************************";
    }
}
